package com.zmn.oms.admin.controller.conf.cancel.category;


import com.zmn.mcc.cas.model.LoginStaff;
import com.zmn.mcc.cas.web.StaffAdminService;
import com.zmn.oms.business.interfaces.conf.cancel.OrderCancelCategoryBService;
import com.zmn.oms.services.interfaces.conf.cancel.OrderCancelCategoryService;

import javax.annotation.Resource;
import java.util.Objects;

/**
 * @author tanbiao
 * @description
 * @since 2019/10/21 18:38
 * @modifier
 **/
public class OrderCancelCategoryBaseController  {
    @Resource
    OrderCancelCategoryService orderCancelCategoryService;
    @Resource
    OrderCancelCategoryBService orderCancelCategoryBService;

    /**
     * 获取登录用户名
     *
     * @param
     * @return
     */
    public String getMcStaffRealName() {
        LoginStaff staff = StaffAdminService.currentStaff();
        if(Objects.nonNull(staff)){
            return staff.getRealName();
        }else {
            return "";
        }
    }
}
